package demo3;

/**
 * Created with IntelliJ IDEA.
 * User: 12629
 * Date: 2022/2/23
 * Time: 21:32
 * Description:
 */
class A {
    public int a;
}
class AA {

}
class B extends A{

}
//密封类：代表这个类  不能被继承了
final class C extends B {
    public void test(){
        System.out.println(super.a);
    }
}
//class D extends C {
//
//}

public class Test {
    public static void main(String[] args) {

    }
}
